package com.fbooks.service.Impl;

import com.fbooks.bean.Logger;
import com.fbooks.mapper.LoggerMapper;
import com.fbooks.service.LoggerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: LuoRunFeng
 * @Email: 475403147@qq.com
 * @Time: 2020/6/14 0014 13:32
 * @Team: 蜂鸟工作室
 */
@Service
public class LoggerServiceImpl implements LoggerService {

    @Autowired
    private LoggerMapper loggerMapper;
    @Override
    public void insertLogger(Logger logger) {
        loggerMapper.insertSelective(logger);
    }

    @Override
    public List<Logger> getAllLogger() {
        List<Logger> loggers = loggerMapper.selectAll();
        return loggers;
    }


}
